<?php 

/*
 *------------------------------------------------------------------------------
 * Project Name  : e-Synergy Library System
 *         Code  : ESN-LBS
 *
 * Created By    : Junlapong
 *         Date  : 2010/01/21
 *
 * $Id$
 *------------------------------------------------------------------------------
 *    copyright: e-Synergy Co., Ltd.
 *==============================================================================
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * @author sira.o
 *
 */
class MY_Input extends CI_Input
{
	/* overide original CI_Input#post
	 * 
	 * @see system/libraries/CI_Input#post($index, $xss_clean)
	 */
	function post($key = '', $xss_clean = FALSE)
	{
		$_KEYPOST = array_keys($_POST);
		
		foreach($_KEYPOST as $_key)
		{
			$_TMP[$_key] = trim($_POST[$_key]);
		}

		return $this->_fetch_from_array($_TMP, $key, $xss_clean);
	}
	
}

// END MY_Input class

/* End of file MY_Input.php */
/* Location: application/libraries/MY_Input.php */